Learning MATLAB by Walter Gander

Learning MATLAB by Walter Gander
Author: Walter Gander
Language: eng
Format: epub
Publisher: Springer International Publishing, Cham

7. Recursion


Walter Gander1

(1)Departement Informatik, ETH Zürich, Zürich, Switzerland

Walter Gander

Email: [email protected]

7.1 Introduction


Recursion is a powerful concept in computer science. The basic idea is that the solution of a problem often can be reduced to solving some smaller instances of the same problem. Recursive solutions can be applied to many problems, one well known strategy is called divide and conquer.

A function is sometimes defined recursively. For instance the factorial, the function